/*
 * @Author: 李晓丹-=== 
 * @Date: 2021-02-23 14:29:34 
 * @Last Modified by: 李晓丹
 * @Last Modified time: 2021-02-23 14:36:52
 */

import React,{FC,Suspense} from 'react'
import {BrowserRouter} from 'react-router-dom';
import RouteView from './routerView';
import routerConfig from './routerConfig';


const Router:FC = function (){
    return <BrowserRouter>
        <Suspense fallback={<div>loading</div>}>
            <RouteView routes={routerConfig}></RouteView>
        </Suspense>
    </BrowserRouter>
}

export default Router